import {FC} from "react";
import {Tooltip} from "antd";

interface TextProps {
    width?: number;
    title?: string;
    className?: string;
}

const Tooltips: FC<TextProps> = ({width = 200, title = "", className = "text-1"}) => (
    <Tooltip placement="topLeft" title={title} arrow>
        <div className={className} style={{width}}>
            {title}
        </div>
    </Tooltip>
);

export default Tooltips;
